package demo2;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LianBao
 * Date: 2024-03-15
 * Time: 17:52
 */

interface IA {
    public void Test();
}


public class Test2 {

    public static void main(String[] args) {
        IA ia = new IA() {
            @Override
            public void Test() {
                System.out.println("重写的Test方法");
            }
        };
    }
}
